package com.isoft.data.dao;

import com.isoft.data.xml.Dfde;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DfdeDao {
    @Insert("INSERT INTO AIRPORT.META(SNDR,RCVR,SEQN,DDTM,TYPE,STYP)" +
            "VALUES(#{dfde.meta.sndr},#{dfde.meta.rcvr},"+
            "#{dfde.meta.seqn},#{dfde.meta.ddtm},"+
            "#{dfde.meta.type},#{dfde.meta.styp})")
    public int addMeta(@Param("dfde") Dfde dfde);
    @Insert("INSERT INTO AIRPORT.DFDE(SEQN,DDTM,FLID,FFID,FIDE)" +
            "VALUES(#{dfde.meta.seqn},#{dfde.meta.ddtm}," +
            "#{dfde.dfdeDflt.flid},#{dfde.dfdeDflt.ffid}, " +
            "#{dfde.dfdeDflt.fide})")
    public int addDfde(@Param("dfde") Dfde dfde);
}
